import request from '@/utils/request'

// api地址
const api = {
  rotation: '/gms/goodsPromotion/listRotation',
  seckill:'/gms/goodsPromotion/listSecKillGoods',
  promotionType:'/gms/goodsPromotion/listPromotionType',
  rotationGoods:'/gms/goodsPromotion/listApp'
}

// 轮播图
export const rotation = (param) => {
  return request.get(api.rotation)
}
// 限时秒杀
export const seckill = (param) => {
  return request.get(api.seckill)
}

// 促销类型
export const promotionType = (param) => {
  return request.get(api.promotionType)
}
//促销类型商品
export const rotationGoods = (param) => {
  return request.get(api.rotationGoods,param,{load:false})
}
